package com.test.routerplugin;

import com.android.build.gradle.BaseExtension;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

/**
 * *******************************************************
 * Author: chinadragon
 * Time: 2023/8/15 10:01
 * Name:
 * Overview:
 * Usage:
 * *******************************************************
 */
//groovy 和 java 代码相通
public class JavassitPlugin implements Plugin<Project> {
    @Override
    public void apply(Project target) {//相当于 main 函数
        System.out.println("执行 ASMPlugin 任务");
        target.getExtensions().getByType(BaseExtension.class).registerTransform(new com.test.routerplugin.JavassitTransform(target));
    }
}
